#include <QApplication>
#include <QStyleFactory>
#include <QScreen>

#include "gui/harustyle.h"
#include "gui/mainwindow.h"

#include <QDebug>

int main(int argc, char *argv[])
{
    //Enable scaling.
    QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
    QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
    //Create the application.
    QApplication app(argc, argv);
    //Load the style to application.
    app.setStyle(QStyleFactory::create("fusion"));
    //Initialize the customized style.
    HaruStyle::initial();
    //Show the main window.
    MainWindow mainWindow;
    mainWindow.show();
    //Expand the event loop.
    return app.exec();
}
